package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author：李刚
 * @Date： 2020/12/5-22:26
 * @Description：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName(value = "ssm_book")
public class Book implements Serializable {
    @TableId(value = "book_id",type = IdType.AUTO)
    private Integer bookId;
    @TableField(value = "book_name")
    private String bookName;
    @TableField(value = "book_author")
    private String bookAuthor;
    @TableField(value = "book_date")
    private Date bookDate;
    @TableField(value = "book_price")
    private Double bookPrice;
}
